package com.ruoyi.slope.ai.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.slope.ai.mapper.SlopeAiUavDetectionPathMapper;
import com.ruoyi.slope.ai.domain.SlopeAiUavDetectionPath;
import com.ruoyi.slope.ai.service.ISlopeAiUavDetectionPathService;

/**
 * 无人机检测路径Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-05
 */
@Service
public class SlopeAiUavDetectionPathServiceImpl implements ISlopeAiUavDetectionPathService 
{
    @Autowired
    private SlopeAiUavDetectionPathMapper slopeAiUavDetectionPathMapper;

    /**
     * 查询无人机检测路径
     * 
     * @param id 无人机检测路径主键
     * @return 无人机检测路径
     */
    @Override
    public SlopeAiUavDetectionPath selectSlopeAiUavDetectionPathById(Long id)
    {
        return slopeAiUavDetectionPathMapper.selectSlopeAiUavDetectionPathById(id);
    }

    /**
     * 查询无人机检测路径列表
     * 
     * @param slopeAiUavDetectionPath 无人机检测路径
     * @return 无人机检测路径
     */
    @Override
    public List<SlopeAiUavDetectionPath> selectSlopeAiUavDetectionPathList(SlopeAiUavDetectionPath slopeAiUavDetectionPath)
    {
        return slopeAiUavDetectionPathMapper.selectSlopeAiUavDetectionPathList(slopeAiUavDetectionPath);
    }

    /**
     * 新增无人机检测路径
     * 
     * @param slopeAiUavDetectionPath 无人机检测路径
     * @return 结果
     */
    @Override
    public int insertSlopeAiUavDetectionPath(SlopeAiUavDetectionPath slopeAiUavDetectionPath)
    {
        slopeAiUavDetectionPath.setCreateTime(DateUtils.getNowDate());
        return slopeAiUavDetectionPathMapper.insertSlopeAiUavDetectionPath(slopeAiUavDetectionPath);
    }

    /**
     * 修改无人机检测路径
     * 
     * @param slopeAiUavDetectionPath 无人机检测路径
     * @return 结果
     */
    @Override
    public int updateSlopeAiUavDetectionPath(SlopeAiUavDetectionPath slopeAiUavDetectionPath)
    {
        slopeAiUavDetectionPath.setUpdateTime(DateUtils.getNowDate());
        return slopeAiUavDetectionPathMapper.updateSlopeAiUavDetectionPath(slopeAiUavDetectionPath);
    }

    /**
     * 批量删除无人机检测路径
     * 
     * @param ids 需要删除的无人机检测路径主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiUavDetectionPathByIds(Long[] ids)
    {
        return slopeAiUavDetectionPathMapper.deleteSlopeAiUavDetectionPathByIds(ids);
    }

    /**
     * 删除无人机检测路径信息
     * 
     * @param id 无人机检测路径主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiUavDetectionPathById(Long id)
    {
        return slopeAiUavDetectionPathMapper.deleteSlopeAiUavDetectionPathById(id);
    }
}
